package com.lx.oms.controller.dao;

import java.util.List;

import org.mybatis.spring.annotation.MapperScan;

import com.lx.oms.common.dao.BaseMapper;
import com.lx.oms.common.entity.Query;
import com.lx.oms.controller.entity.SysCategoryEntity;

/**
 * 类别
 * @author houzhong
 *
 */
@MapperScan
public interface SysCategoryMapper extends BaseMapper<SysCategoryEntity>{
	
	/**
	 * 列表查询
	 * @param query
	 * @return
	 */
	List<SysCategoryEntity> listCategoryByParentId(Query query);
	
	int countCategoryChildren(String categoryId);
	
	SysCategoryEntity getCategoryByName(Query query);
	
	/**
	 * 查询
	 * @param parentId
	 * @return
	 */
	List<SysCategoryEntity> getCategoryByParentId(Query query);
}
